<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group" style="display: flex;">
        <!-- <label class="control-label col-xs-12 col-sm-2"></label> -->
        <div class="control-label  col-xs-12 col-sm-2">{:__('订单商品')}:</div>
        <div class="col-xs-12 col-sm-8">
            {foreach $row['goods'] as $v}
            <div
                style="display: flex;padding:15px 30px;justify-content:space-between;background-color: #f9f9f9;margin-top: 20px;border-radius: 12px;">
                <div>
                    <img style="width: 80px;height:80px;border-radius: 12px;" src="{$v['image']}" alt="">
                </div>

                <div
                    style="font-size: 14px;padding: 0 20px 10px 10px;display: flex;flex-direction: column;justify-content: space-between;flex:1;">
                    <div style="display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow: hidden;font-weight: bold;">{$v['goods_name']}</div>
                    <div style="display: flex;color: #999;">
                        <div>单位：{$v.goods_unit?'瓶':'箱'}</div>
                    </div>
                    <div style="display: flex;color: #999;">
                        {if $row['type']==1}
                        <div>原价：{$v['goods_price']}元</div>
                        {else}
                        <div>原价：{$v['goods_price_range']}元</div>
                        {/if}
                        <div style="padding:0 20px;color: #FAA553;display: flex;">X{$v.goods_num}</div>
                    </div>
                </div>
                <div style="font-size: 14px;color: #999;">
                    <div style="display: flex;">
                        {if $row['type']==1}
                        <div style="width: 80px;">商品小计：</div>
                        <div>{$v['subtotal']}元</div>
                        {else}
                        <div style="width: 80px;">区间小计：</div>
                        <div>{$v['subtotal_range']}元</div>
                        {/if}
                    </div>
                    <div style="display: flex">
                        <div style="width: 80px;">支付金额：</div>
                        <div style="color:#FE4B3D;"> <input id="c-subtotal" class="form-control" name="row[subtotal][{$v['id']}]" type="number" value="0"></div>
                    </div>

                </div>
            </div>
            {/foreach}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>